<!DOCTYPE HTML>
<html>

	<head>
		<style type="text/css"></style>
		<meta content="no-siteapp" http-equiv="Cache-Control">
		<link media="handheld" rel="alternate">
		<!-- end 云适配 -->
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<title>我关注的公司-城建就业指导网</title>

		<link href="${rc.contextPath}/bootstrap/css/bootstrap.css" rel="stylesheet">
		<link href="${rc.contextPath}/css/style.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="${rc.contextPath}/js/jquery.1.10.1.min.js"></script>
		<script src="${rc.contextPath}/js/jquery.lib.min.js" type="text/javascript"></script>
		<script src="${rc.contextPath}/bootstrap/js/bootstrap.min.js"></script>
		<!--[if lte IE 8]>
		    <script type="text/javascript" src="style/js/excanvas.js"></script>
		<![endif]-->
		
	</head>

	<body>
		<div id="body">
		
				#parse("header.html")
			
			<!-- end #header -->
			<div id="container">

				<div class="clearfix">
					<div class="content_l">
						<dl class="c_collections">
							<dt>
		                        <h1><em></em>我关注的公司</h1>
		                    </dt>
							<dd>
								<form id="collectionsForm">
									<ul class="reset my_collections">
										#foreach($!collectionCompany in $!collectionCompanyList)
										<li data-id="133340">
											<a title="$!collectionCompany.company_name" target="_blank" href="${rc.contextPath}/company/detail/$!collectionCompany.id">
												<img alt="$!collectionCompany.company_name" src="http://127.0.0.1:8080/image/companylogo/$!collectionCompany.company_logo">
											</a>
											<div class="co_item">
												<h2 title="$!collectionCompany.company_name">
			                                        <a target="_blank" href="${rc.contextPath}/company/detail/$!collectionCompany.id">
			                                        	<em>$!collectionCompany.company_name</em> 
			                                        	<span>（
			                                        	#if($!collectionCompany.company_scale == 0)
														少于15人
														#end
														#if($!collectionCompany.company_scale == 1)
														15-50人
														#end
														#if($!collectionCompany.company_scale == 2)
														50-150人>
														#end
														#if($!collectionCompany.company_scale == 3)
														150-500人
														#end
														#if($!collectionCompany.company_scale == 4)
														500-2000人
														#end
														#if($!collectionCompany.company_scale == 5)
														2000人以上
														#end
			                                        	）</span>
			                                    	</a>
			                                    </h2>
												<span class="co_time">所属行业：$!collectionCompany.domain_name</span>
												<div class="co_cate">$!collectionCompany.location_name </div>
												<span class="co_youhuo c7">$!collectionCompany.company_brief</span>
												<a class="collectionCancel collection_link collected" href="javascript:;" data-id="$!collectionCompany.id">
													取消关注
													<span>已取消关注</span>
												</a>
											</div>
										</li>
										#end
									</ul>
									<div class="pagination" style="margin: 0px 0 20px;">$!page.pageString</div>
								</form>
							</dd>
						</dl>
					</div>
					<div class="content_r">
						<div class="mycenterR" id="myInfo">
							<h2>我的信息</h2>
							<a target="_blank" href="${rc.contextPath}/user/collection/job/1">我收藏的职位</a>
							<br>
							<a href="${rc.contextPath}/user/collection/company/1">我关注的公司</a>
						</div>
						<!--end #myInfo-->
						<!--<div class="greybg qrcode mt20">
							<img width="242" height="242" alt="拉勾微信公众号二维码" src="style/images/qr_delivery.png">
							<span class="c7">扫描拉勾二维码，微信轻松搜工作</span>
						</div>-->
					</div>
				</div>
				<script src="${rc.contextPath}/js/collections.min.js"></script>
				
				<div class="clear"></div>
				<a rel="nofollow" title="回到顶部" id="backtop"></a>
			</div>
			<!-- end #container -->
		</div>
		<!-- end #body -->


		<!--  -->

	</body>
<script type="text/javascript">

$(document)
.on(
		"click",
		".pagination a",
		function(e) {
			var pageNum = $(this).attr("pageData");
			if (pageNum == 0 || isNaN(pageNum)) {
				return;
			}
			
			window.location.href = "${rc.contextPath}/user/collection/company/"+ pageNum ;
		});
		
$(".collectionCancel").click(function(){
	if(confirm("确认取消收藏？")){
		jQuery.getJSON('${rc.contextPath}/user/cancelcollect/company?id='+$(this).data("id"),function(data){
			if(data.code == 200){
				alert(data.info);
				location.reload();
			}else if(data.code == 405){
				alert(data.info);
				window.location.href = "${rc.contextPath}/login";
			}else{
				alert(data.info);
			}
		})
	}
});
</script>

</html>